<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <?php if($sf_user->hasFlash('success_notification')){ ?>
      <div id="success" class="flash_notification">
          <p><?php echo $sf_user->getFlash('success_notification'); ?></p>
      </div>
    <?php } ?>
    <?php if($sf_user->hasFlash('alert_notification')){ ?>
      <div id="alert" class="flash_notification">
          <p><?php echo $sf_user->getFlash('alert_notification'); ?></p>
      </div>
    <?php } ?>
    <?php if($sf_user->hasFlash('error_notification')){ ?>
      <div id="error" class="flash_notification">
          <p><?php echo $sf_user->getFlash('error_notification'); ?></p>
      </div>
    <?php } ?>
    <?php if($sf_user->isAuthenticated()){ ?>
      <table width="1000px" style="margin: 0 auto; margin-top: 40px;">
          <tr>
              <td width="250px" valign="top">
                  <a href="<?php echo url_for('@homepage'); ?>">Inicio</a>
                  <br /><br /><br />
                  <h4>Administrador</h4>
                  <ul>
                      <li><a href="<?php //echo url_for('@service'); ?>">Administrar personal</a></li>
                      <li><a href="<?php echo url_for('@categories'); ?>">Administrar categorías</a></li>
                      <li><a href="<?php echo url_for('@products'); ?>">Administrar productos</a></li>
                  </ul>
                  <h4>Personal</h4>
                  <ul>
                      <li><a href="">Entregas asignadas</a></li>
                  </ul>
                  <br /><br /><br />
                  <a href="<?php echo url_for('@logout'); ?>">Cerrar sesión</a>
              </td>
              <td valign="top">
                  <?php echo $sf_content ?>
              </td>
          </tr>
      </table>
    <?php }else{ ?>
      <div style="margin: 0 auto; width: 1000px;">
          <?php echo $sf_content ?>
      </div>
    <?php } ?>
  </body>
</html>